<template>
	<view>
		<view class="box">
			<view class="u-text-center u-p-30 u-font-34">
				{{title}}
			</view>
			<view class="" v-html="content">
				
			</view>
		</view>
	</view>
</template>

<script>
	import { rpArticleGet } from '@/api/index.js'
	export default {
		data() {
			return {
				content:'',
				title:''
			}
		},
		onLoad(e) {
			uni.setNavigationBarTitle({
				title:e.title
			})
			this.rpArticleGet(e.id)
		},
		methods: {
			rpArticleGet(id){
				rpArticleGet({id}).then(res=>{
					this.title = res.title
					this.content = res.content
				})
			}
		}
	}
</script>

<style scoped>
page{
	background-color: #f1f1f1;
	padding: 20rpx;
}
.box{
	background-color: #FFFFFF;
	border-radius: 8rpx;
	padding: 20rpx;
}
.u-text-center{
	font-weight: 600;
}
</style>
